package org.anderground.internal.graphics.factories;

import org.anderground.core.graphics.Rect;
import org.anderground.core.graphics.RectF;
import org.anderground.core.graphics.factories.RectFFactory;
import org.anderground.internal.graphics.abstaractions.AbstractRectF;
import org.anderground.internal.graphics.impl.AwtRect;
import org.anderground.internal.graphics.impl.AwtRectF;

public class RectFFactoryImpl extends RectFFactory {

	@Override
	public AbstractRectF create() {
		return new AwtRectF();
	}

	@Override
	public AbstractRectF create(Rect rect) {
		return new AwtRectF((AwtRect) rect.getDelegate());
	}

	@Override
	public AbstractRectF create(RectF rectF) {
		return new AwtRectF((AwtRectF) rectF.getDelegate());
	}

	@Override
	public AbstractRectF create(float left, float top, float right, float bottom) {
		return new AwtRectF(bottom, left, right, top);
	}

}
